Skip to content

test: Run the client-level tests on the FDv2 data system - #570

Merged
keelerm84 merged 1 commit into
feat/10.xfrom
mk/SDK-3480/client-tests-on-fdv2
Nov 10, 2026
Merged

keelerm84 merged 1 commit into
feat/10.xfrom
mk/SDK-3480/client-tests-on-fdv2

Conversation

@keelerm84

@keelerm84 keelerm84 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves the client-level tests off the FDv1 data system so they keep their coverage when FDv1 is removed. The evaluation, events, hooks, listeners, fork, singleton, migration and async client tests now use FDv2 daemon mode over the test's store, or TestDataV2 as a synchronizer. Six tests still use FDv1 on purpose: four that check the FDv1 processor types, and two use_ldd fork tests. Those are removed or moved when FDv1 is removed.

Adds client-level FDv2 tests, sync and async, that run against a real HTTP server:

  • streaming, polling and the default strategy
  • retry after a recoverable error, and a 401 at start
  • TLS settings and HTTP proxies
  • offline and daemon modes
  • evaluation with the FDv2 file data source and with TestDataV2

Two tests are strict xfails for a bug where a network error during polling removes the polling synchronizer. The fix is #569 on main. The xfail markers are removed when main is merged into this branch.


Note

Overview
Migrates client-level tests from FDv1 (MockUpdateProcessor, update_processor_class, manual store init) to FDv2 via datasystem_config: daemon mode over an in-memory store for store-driven scenarios, TestDataV2 synchronizers for flag setup, and shared helpers (_test_data_config, _daemon_config, make_client).

Adds sync and async E2E suites (test_ldclient_end_to_end_fdv2.py, test_async_ldclient_end_to_end_fdv2.py) against a mock HTTP server covering streaming/polling/default bootstrap, 401 fail-fast, TLS and proxy behavior, offline/daemon, file and TestDataV2 evaluation. Listener and singleton tests now drive /sdk/stream with FDv2 SSE payloads instead of legacy put events.

The dependency-ordering test uses a custom FDv2 initializer + ChangeSetBuilder instead of an UpdateProcessor. Cached-data warning tests use daemon/read-only semantics instead of a fake “uninitialized” processor. Hook tests switch from TestData to TestDataV2; fork tests mostly use FDv2 with a dedicated make_ldd_client still on FDv1 for use_ldd behavior.

Two strict xfails document known polling retry bugs (sync and async) pending fix on main.

Reviewed by Cursor Bugbot for commit f8d04a2. Bugbot is set up for automated code reviews on this repo. Configure here.

The evaluation, events, hooks, listeners, fork, singleton, migration and
async client tests no longer inject data through the FDv1 data system. They
use FDv2 daemon mode over the test's store, or TestDataV2 as a synchronizer.
Tests that check FDv1 behavior on purpose stay until FDv1 is removed.

Also add client-level FDv2 tests over a real HTTP server: streaming,
polling and the default strategy, retry after a recoverable error, a 401 at
start, TLS settings, HTTP proxies, offline and daemon modes, and evaluation
with the FDv2 file data source and TestDataV2. Two tests are marked xfail:
a network error during polling removes the polling synchronizer.
@keelerm84
keelerm84 requested a review from a team as a code owner November 5, 2026 20:55
@keelerm84
keelerm84 merged commit 498158b into feat/10.x Nov 10, 2026
18 checks passed
@keelerm84
keelerm84 deleted the mk/SDK-3480/client-tests-on-fdv2 branch November 10, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants